package net.sudot.chess.business.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 微信聊天信息
 *
 * @author tangjialin on 2018-11-04.
 */
@Getter
@Setter
@Accessors(chain = true)
public class WechatMessageDTO implements Serializable {
    @Valid
    private Room room;
    private String fromUserName;
    private String toUserName;
    private int msgType;
    @NotEmpty
    private String content;

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class Room {
        @NotEmpty
        private String topic;
    }
}
